home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Dots & Pixels / sources / dotcollection.cp < prev    next >
Text File  |  1995-09-29  |  569b  |  34 lines

  1. #include <Retrace.h>
  2. #include <Devices.h>
  3. #include <SegLoad.h>
  4. #include <Timer.h>
  5.  
  6. #include <math.h>
  7. #include <iostream.h>
  8.  
  9. #include "C_randomizer.h"
  10. #include "flowsettings.h"
  11. #include "vretrace.h"
  12. #include "phaser.h"
  13. #include "dotcollection.h"
  14.  
  15. dotcollection::dotcollection( int aantaldots)
  16. {
  17.     numdots = aantaldots;
  18.     
  19.     xcoords = new short[ numdots];
  20.     ycoords = new short[ numdots];
  21.     
  22.     for( int i = 0; i < numdots; i++)
  23.     {
  24.         xcoords[ i] = randomizer_step();
  25.         ycoords[ i] = randomizer_step();
  26.     }
  27. }
  28.  
  29. dotcollection::~dotcollection()
  30. {
  31.     delete xcoords;
  32.     delete ycoords;
  33. }
  34.